package top.korori.entity.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * 
 * 后台角色表
 * 
 *
 * @author korori
 * @since
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "角色菜单参数")
public class SysRoleBo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "role_id", type = IdType.AUTO)
    private Long roleId;

    @NotBlank(message = "角色名不能为空")
    @ApiModelProperty("角色名")
    private String roleName;

    @NotBlank(message = "角色字符不能为空")
    @ApiModelProperty("角色字符")
    private String roleKey;

    @ApiModelProperty("角色排序")
    private Integer sort;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("菜单id")
    private List<Long> menuIds;

}
